<%-- $Id: footer_m.jsp 182 2011-08-12 07:43:09Z bs24event@gmail.com $ --%><%--
--%><%@page import="java.util.ResourceBundle"%><%--
--%><%@page pageEncoding="UTF-8"%>
	<!-- ▼FOOTER▼ -->
	<hr />
	<font size="1" >
		・<a href="/">HOME</a><br />
		・<a href="/event/list">EVENT</a><br />
		・<a href="/member/photo/albumList">PHOTO</a><br />
		・<a href="#">ページのトップへ戻る</a><br />
	</font>
	<hr />
	<center><font size="1" >Copyright &copy; 2011 bs24event All Rights Reserved.</font></center>
<%-- Google Analytics --%>
<%@ page import="java.io.UnsupportedEncodingException,
                  java.net.URLEncoder" %>
<%!
// Copyright 2009 Google Inc. All Rights Reserved.
private static final String GA_ACCOUNT = ResourceBundle.getBundle("setting").getString("google.analytics.mobile.id");
private static final String GA_PIXEL = "/ga.jsp";

private String googleAnalyticsGetImageUrl(
    HttpServletRequest request) throws UnsupportedEncodingException {
  StringBuilder url = new StringBuilder();
  url.append(GA_PIXEL + "?");
  url.append("utmac=").append(GA_ACCOUNT);
  url.append("&utmn=").append(Integer.toString((int) (Math.random() * 0x7fffffff)));
  String referer = request.getHeader("referer");
  String query = request.getQueryString();
  String path = request.getRequestURI();
  if (referer == null || "".equals(referer)) {
    referer = "-";
  }
  url.append("&utmr=").append(URLEncoder.encode(referer, "UTF-8"));
  if (path != null) {
    if (query != null) {
      path += "?" + query;
    }
    url.append("&utmp=").append(URLEncoder.encode(path, "UTF-8"));
  }
  url.append("&guid=ON");
  return url.toString().replace("&", "&amp;");
}
%>
<% String googleAnalyticsImageUrl = googleAnalyticsGetImageUrl(request); %>
<img src="<%= googleAnalyticsImageUrl %>" />
	<!-- ▲FOOTER▲ -->